<!--
 * @Descripttion: 
 * @version: 
 * @Author: Jun
 * @Date: 2021-05-29 10:58:10
 * @LastEditors: Jun
 * @LastEditTime: 2021-06-02 10:15:49
-->
<template>
  <div>删除页
      <button @click="remove">删除账号</button>
      <button @click="add">按钮</button>
  </div>
</template>

<script>
import {url} from "api/logout.js"
export default {
    methods:{
        async remove(){
            let res = await this.$httpRequest({
                url:url,
                method:"POST",
                data:{}
            })
            console.log(res)
            localStorage.clear()
        }
    }
};
</script>

<style>
</style>